package com.wuliang.generate.response.datasource;

import com.wuliang.generate.common.core.adapter.swagger.EntityReader;
import com.wuliang.generate.common.core.annotation.WLApplication;
import com.wuliang.generate.common.core.configs.AopConfig;
import com.wuliang.generate.common.core.configs.RedisConfig;
import com.wuliang.generate.common.core.configs.SwaggerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * @author WuLiang
 */
@WLApplication(
        anotherEntityPackages = {
                "com.wuliang.generate.common.entities"
        },
//        repositoryPackage = {
//                "com.wuliang.generate.common.repositories.datasource"
//        },
        anotherScanPackages = {
                "com.wuliang.generate.common.core.utils",
                "com.wuliang.generate.response.datasource",
                "com.wuliang.generate.common.core.properties"
        },
        anotherRegistryConfigs = {
                AopConfig.class,
                RedisConfig.class,
                EntityReader.class,
                SwaggerConfig.class,
//                DatasourceConfig.class,
//                DatasourceDataSourceConfig.class,
        },
        exclude = {
                DataSourceAutoConfiguration.class,
        }
)
public class DataSourceApplication {

    public static void main(String[] args) {
        SpringApplication.run(DataSourceApplication.class, args);
    }

}
